<template>
  <div class="quoteTitle">
    <div class="title">
      <div class="back">
        <p>
          <slot name="quoteTitle"></slot>
        </p>
      </div>
      <div class="more" @click="moreArticle">
        <span>查看更多</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:['pushTitle'],
  methods:{
    moreArticle(){
      // console.log(this.pushTitle)
      this.$router.push('/quoteHome/' + this.pushTitle);
    }
  }
}
</script>

<style>
.quoteTitle .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.quoteTitle .back {
  width: 457px;
  height: 60px;
  background-color: rgb(1, 140, 191);
  text-align: center;
  line-height: 20px;
}
.quoteTitle .back p {
  text-shadow: rgba(0, 0, 0, 0.4) 0px 2px 6px;
  font-size: 14px;
}
.quoteTitle .back p span {
  font-family: PingFangSC;
  font-weight: 400;
  font-size: 20px;
  color: rgb(255, 255, 255);
  letter-spacing: 0px;
  line-height: 60px;
  text-align: center;
}
.quoteTitle .more {
  width: 106px;
  height: 47px;
  border-color: rgb(27, 147, 196);
  border-width: 1px;
  border-style: solid;
  color: rgb(27, 147, 196);
  border-radius: 20px;
  font-size: 14px;
  padding: 0px;
  text-align: center;
  line-height: 47px;
}
.quoteTitle .more span {
  text-align: center;
  line-height: 47px;
}
@media screen and (max-width: 606px) {
  .quoteTitle .back {
    width: 300px;
  }
  .quoteTitle .back p span {
    font-size: 17px;
  }
}
@media screen and (max-width: 475px) {
  .quoteTitle .back {
    width: 250px;
    height: 40px;
    line-height: 40px;
  }
  .quoteTitle .back p span {
    font-size: 15px;
  }
  .quoteTitle .back p span {
    line-height: 40px;
  }
  .quoteTitle .more span {
    line-height: 30px;
  }
  .quoteTitle .more {
    height: 30px;
    line-height: 30px;
    width: 70px;
    font-size: 12px;
  }
}
@media screen and (max-width: 360px) {
  .quoteTitle .back {
    width: 220px;
    height: 40px;
    line-height: 40px;
  }
  .quoteTitle .back p span {
    font-size: 13px;
    padding-left: 10px;
  }
}
</style>